#导包
from rest_framework import serializers
#导入数据库类
from myapp.models import User,Goods,Category,Pics,Comments

class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = "__all__"
        
        
        
class GoodsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = "__all__"
        
        
        
class CategorySerializer(serializers.ModelSerializer):
    class Meta:
        model = Category
        fields = "__all__"
        
        
        
class PicsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Pics
        fields = "__all__"
        
        
        
class CommentsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Comments
        fields = "__all__"